package com.mxpio.erp.common.quality.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_QUALITY_II_PARAM")
@Schema(description="检测项目-参数选项")//质检项目
public class InspectionItemParam extends BaseEntity{
	private static final long serialVersionUID = 1L;

	@Id
	@Generator(policy = UUIDPolicy.class)
	@Column(name = "ID_")
	@Schema(description = "主键")
	private String id;

	@Column(name = "CODE_", updatable = false)
	@Schema(description = "项目编号")
	private String code;

	@Column(name = "PARAMETER_")
	@Schema(description = "选项")
	private String parameter;

	@Column(name = "NUM_")
	@Schema(description = "序号")
	private Integer num;

	@Column(name = "DEFAULT_")
	@Schema(description = "是否默认")
	@Dict(dicCode = "ERP_COMMON_YESNO")
	private Boolean defaultParam;
}
